import request from '@/utils/request'

export default {
  pageList(page, limit, searchObj) {
    return request({
      url: `/admin/user/listAppointment/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  },
  pageSysList(page, limit) {
    return request({
      url: `/admin/user/list/${page}/${limit}`,
      method: 'get'
    })
  },
  getById(id) {
    return request({
      url: `/admin/user/get/${id}`,
      method: 'get'
    })
  },
  updateById(app) {
    return request({
      url: '/admin/user/update',
      method: 'put',
      data: app
    })
  }
}
